//---------------------------------------------------------------------------
#ifndef LoanArticleH
#define LoanArticleH
//---------------------------------------------------------------------------
#include <vcl.h>

class LoanArticle
{
	private:
	int articleID1;			// the id of this article
	AnsiString name1;		// the name of this article
	int nrOfItems1;			// the number of items of this article
	AnsiString kind1;  		// the kind of this article, for instance "christmas-article"
	double price1;       	// the price an item of this article
	double deposit1;			// the desposit for a article

	AnsiString padRight1(AnsiString str1, int len1);
	/*
	this function will add spaces to the left side of the string.
	*/

	public:
	//constructors
	
	/*
	constructs an Article-object with id 0, name "noname", items 0,
	kind "unknown" and price 0.0.
	*/
	LoanArticle();

	/*
	constructs an Article-object with id, name, nrOfItems, kind and
	price as specified with the parameters of this constructor.
	*/
	LoanArticle(int id1, AnsiString name1, int nrOfItems1, AnsiString kind1, double price1, double deposit1);


	//methods (functions)

	/*
	initializes an Article-object with id, name, nrOfItems, kind and
	price and deposit as specified with the parameters of this method.
	*/
	void initialize1(int id1, AnsiString name1, int nrOfItems1, AnsiString kind1, double price1, double deposit1);

	/*
	some get-functions
	*/
	int getArticleID1();
	AnsiString getName1();
	int getNrOfItems1();
	AnsiString getKind1();
	double getPrice1();
	double getDeposit1();

	/*
	returns an AnsiString with information about the
	datamembers of this object,
	separated bij delimiters (choose your own delimiters).
	*/
	AnsiString asAString1();

	/*
	decreases the number of items of this object by amount.
	*/
	void decreaseNrOfItemsBy1(int amount1);

	/*
	increases the number of items of this object by amount.
	*/
	void increaseNrOfItemsBy1(int amount1);
};
//---------------------------------------------------------------------------
#endif
